package com.quxian.chambercommerce.service.impl;

import java.util.List;
import java.util.Map;

import com.quxian.chambercommerce.bean.TypeGroupEntity;
import com.quxian.chambercommerce.bean.TypeItemEntity;
import com.quxian.chambercommerce.dao.TypeManageDao;
import com.quxian.chambercommerce.service.TypeManageService;

public class TypeManageServiceImpl implements TypeManageService {

	private TypeManageDao typeManageDao;
	
	public TypeManageDao getTypeManageDao() {
		return typeManageDao;
	}

	public void setTypeManageDao(TypeManageDao typeManageDao) {
		this.typeManageDao = typeManageDao;
	}

	@Override
	public List<TypeGroupEntity> getAllType() throws Exception {
		return typeManageDao.getAllType();
	}

	@Override
	public void deleteGroupById(Integer id) throws Exception {
		typeManageDao.deleteGroupById(id);
	}

	@Override
	public List<TypeItemEntity> selectItemByGroup(Integer groupId)
			throws Exception {
		return typeManageDao.selectItemByGroup(groupId);
	}

	@Override
	public void insterItem(TypeItemEntity entity) throws Exception {
		typeManageDao.insterItem(entity);
	}

	@Override
	public void deleteItemByGroup(Integer groupId) throws Exception {
		typeManageDao.deleteItemByGroup(groupId);
	}

	@Override
	public void deleteItemById(Integer id) throws Exception {
		typeManageDao.deleteItemById(id);
	}

	@Override
	public void updateTypeItem(Map<String, Object> map) throws Exception {
		typeManageDao.updateTypeItem(map);
	}

}
